<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('会员信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>账号名称：</p>
                                <input type="text" name="loginName"/>
                            </li>
                            <li>
                                <p>登录密码：</p>
                                <input type="text" name="loginPassword"/>
                            </li>
                            <li>
                                <p>企业名称：</p>
                                <input type="text" name="userName"/>
                            </li>
                            <li>
                                <p>法定住所：</p>
                                <input type="text" name="legalDomicile"/>
                            </li>
                            <li>
                                <p>邮政编码：</p>
                                <input type="text" name="postCode"/>
                            </li>
                            <li>
                                <p>通讯地址：</p>
                                <input type="text" name="mailAddress"/>
                            </li>
                            <li>
                                <p>法定代表人：</p>
                                <input type="text" name="legalPerson"/>
                            </li>
                            <li>
                                <p>注册资本：</p>
                                <input type="text" name="registeredCapital"/>
                            </li>
                            <li>
                                <p>商标部门：</p>
                                <input type="text" name="trademarkDepartment"/>
                            </li>
                            <li>
                                <p>联系人：</p>
                                <input type="text" name="contactName"/>
                            </li>
                            <li>
                                <p>联系电话：</p>
                                <input type="text" name="contactTel"/>
                            </li>
                            <li>
                                <p>会员类型：</p>
                                <select name="memberType" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <p>类型名称：</p>
                                <input type="text" name="typeName"/>
                            </li>
                            <li>
                                <p>推荐人：</p>
                                <input type="text" name="memberReferee"/>
                            </li>
                            <li>
                                <p>联系地址：</p>
                                <input type="text" name="contactAddress"/>
                            </li>
                            <li>
                                <p>企业网址：</p>
                                <input type="text" name="websiteAddress"/>
                            </li>
                            <li>
                                <p>电子邮箱：</p>
                                <input type="text" name="contactEmail"/>
                            </li>
                            <li>
                                <p>会员等级：</p>
                                <input type="text" name="memGrade"/>
                            </li>
                            <li>
                                <p>企业类型：</p>
                                <select name="enterpriseType" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <p>营业执照：</p>
                                <input type="text" name="enterpriseLicense"/>
                            </li>
                            <li>
                                <p>是否审核：</p>
                                <input type="text" name="isVerify"/>
                            </li>
                            <li class="select-time">
                                <p>创建时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreatedTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreatedTime]"/>
                            </li>
                            <li class="select-time">
                                <p>修改时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginUpdatedTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endUpdatedTime]"/>
                            </li>
                            <li class="select-time">
                                <p>删除时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginDeletedTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endDeletedTime]"/>
                            </li>
                            <li>
                                <p>创建者：</p>
                                <input type="text" name="createdBy"/>
                            </li>
                            <li>
                                <p>修改者：</p>
                                <input type="text" name="updatedBy"/>
                            </li>
                            <li>
                                <p>删除者：</p>
                                <input type="text" name="deletedBy"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="bajiaostar:jbhWemember:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="bajiaostar:jbhWemember:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="bajiaostar:jbhWemember:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="bajiaostar:jbhWemember:export">
                    <i class="fa fa-download"></i> 导出
                 </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table" data-mobile-responsive="true"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('bajiaostar:jbhWemember:edit')}]];
        var removeFlag = [[${@permission.hasPermi('bajiaostar:jbhWemember:remove')}]];
        var prefix = ctx + "bajiaostar/jbhWemember";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "会员信息",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id', 
                    title : '自动编号',
                    visible: false
                },
                {
                    field : 'loginName', 
                    title : '账号名称'
                },
                {
                    field : 'loginPassword', 
                    title : '登录密码'
                },
                {
                    field : 'userName', 
                    title : '企业名称'
                },
                {
                    field : 'legalDomicile', 
                    title : '法定住所'
                },
                {
                    field : 'postCode', 
                    title : '邮政编码'
                },
                {
                    field : 'mailAddress', 
                    title : '通讯地址'
                },
                {
                    field : 'legalPerson', 
                    title : '法定代表人'
                },
                {
                    field : 'registeredCapital', 
                    title : '注册资本'
                },
                {
                    field : 'trademarkDepartment', 
                    title : '商标部门'
                },
                {
                    field : 'contactName', 
                    title : '联系人'
                },
                {
                    field : 'contactTel', 
                    title : '联系电话'
                },
                {
                    field : 'memberType', 
                    title : '会员类型'
                },
                {
                    field : 'typeName', 
                    title : '类型名称'
                },
                {
                    field : 'memberReferee', 
                    title : '推荐人'
                },
                {
                    field : 'contactAddress', 
                    title : '联系地址'
                },
                {
                    field : 'websiteAddress', 
                    title : '企业网址'
                },
                {
                    field : 'contactEmail', 
                    title : '电子邮箱'
                },
                {
                    field : 'memGrade', 
                    title : '会员等级'
                },
                {
                    field : 'enterpriseBrief', 
                    title : '企业简介'
                },
                {
                    field : 'enterpriseType', 
                    title : '企业类型'
                },
                {
                    field : 'enterpriseLicense', 
                    title : '营业执照'
                },
                {
                    field : 'isVerify', 
                    title : '是否审核'
                },
                {
                    field : 'extend', 
                    title : '扩展字段'
                },
                {
                    field : 'remark', 
                    title : '备注'
                },
                {
                    field : 'createdTime', 
                    title : '创建时间'
                },
                {
                    field : 'updatedTime', 
                    title : '修改时间'
                },
                {
                    field : 'deletedTime', 
                    title : '删除时间'
                },
                {
                    field : 'createdBy', 
                    title : '创建者'
                },
                {
                    field : 'updatedBy', 
                    title : '修改者'
                },
                {
                    field : 'deletedBy', 
                    title : '删除者'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>